package com.zhkj.shixi.tvplayer;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.Display;
import android.view.Gravity;
import android.view.SurfaceView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;

import com.zhkj.shixi.tvplayer.PicturePlayer.AlertDialogImpl;
import com.zhkj.shixi.tvplayer.PicturePlayer.CommonDialog;
import com.zhkj.shixi.tvplayer.PicturePlayer.MusicBackGround;
import com.zhkj.shixi.tvplayer.VideoPlayer.BottomControlBar;
import com.zhkj.shixi.tvplayer.VideoPlayer.PlayerView;
import com.zhkj.shixi.tvplayer.VideoPlayer.VideoPlayOrder;
import com.zhkj.shixi.tvplayer.VideoPlayer.VideoPlayerUI;
import com.zhkj.shixi.tvplayer.adapter.PlayList;
import com.zhkj.shixi.tvplayer.entity.ToolListEntity;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class DemoActivity extends Activity {
    private static final String TAG = "DemoActivity";
    private Uri mediaUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo);
        MusicBackGround musicBackGround = new MusicBackGround();

        Button btnTest = findViewById(R.id.button1);
        btnTest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                CommonDialog.Builder builder = new CommonDialog.Builder(DemoActivity.this);
                builder.setMessage("这个就是自定义的提示框");
                builder.setTitle("提示");
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int which) {
                        dialog.dismiss();
                        //设置你的操作事项
                        Toast.makeText(DemoActivity.this,"queding",Toast.LENGTH_SHORT).show();
                    }
                });

                builder.setNegativeButton("取消",
                        new android.content.DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog, int which) {
                                Toast.makeText(DemoActivity.this,"queding",Toast.LENGTH_SHORT).show();
                                dialog.dismiss();
                            }
                        });

                builder.create().show();

            }
        });

    }
}